<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="org.lsms.dao.impl.*" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>Chair Invite Member Page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="LSMS,ICSEE,CHAIR">
	
	<link rel="stylesheet" type="text/css" href="../css/author_layout.css">
	<link rel="stylesheet" type="text/css" href="../css/hyper_link_style.css">
	
	<script type="text/javascript">
	
	function check(){
		var loginname = document.form1.loginname;
		if(loginname.value==""){
			alert("Login name can not be null!");
			loginname.focus();
			return false;
		}
		
		var email = document.form1.email;
		if(email.value==""){
			alert("Email can not be null!");
			email.focus();
			return false;
		}
		
		var firstname = document.form1.firstname;
		if(firstname.value==""){
			alert("First name can not be null!");
			firstname.focus();
			return false;
		}
		
		var lastname = document.form1.lastname;
		if(lastname.value==""){
			alert("Last name can not be null!");
			lastname.focus();
			return false;	
		}
		
		return true;
		
	}
	</script>
	
	<style type="text/css">
		td {
			text-align:right;
		}
	</style>
	
  </head>
  
  <body>
	<div id="container">
		<div id="header" class="logo_image"></div>
		<div class="nav"></div>
		<div id="author_menu" class="border">
			<table border="0" width="100%"  >
				<tr>
					<td  bgcolor="#CCCCCC"><a href="../index.jsp">Home</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="chair_decision.jsp">View All Papers/Decision</a></td>
				</tr>
				<tr>
				<%
					DaoImpl impl = new DaoImpl();
					HashMap<String,Integer> hm = impl.get_site_setting();
					int member_invite = hm.get("member_invite");
					if(member_invite==1){
				 %>
					<td  bgcolor="#CCCCCC"><a href="invite_member.jsp">Invite PC Member</a></td>
				<%
					}else{
				 %>
				 	<td  bgcolor="#CCCCCC"><a href="../error/invite_member_forbidden.jsp">Invite PC Member</a></td>	
				<%
					}
				 %>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="member_conf.jsp">Pcmember Confirmation</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="paper_assign.jsp">Paper Assign</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="assign_index.jsp">Assign Papers' Indexes</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="modify_info.jsp">Modify Information</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="../logout">Log Out</a></td>
				</tr>
			</table>
		</div>
		
		<div id="content" class="bg_color border" style="height:320px">
			<br>
			<b>Invite PC Member</b>
			<br>
			<br>
			<form action="../invite_member" name='form1' method="post" onSubmit="return check()">
				<table align="center">
				<tr>
					<td>
					<b>Login Name:</b>
					</td>
					<td>
					<input type="text" name="loginname" size="40px"><span class="star">*</span>
					</td>
				</tr>
				<tr>
					<td>
					<b>Email:</b>
					</td>
					<td>
					<input type="text" name="email" size="40px"><span class="star">*</span>
					</td>
				</tr>
				<tr>
					<td>
					<b>First/Given Name:</b>
					</td>
					<td>
					<input type="text" name="firstname" size="40px"><span class="star">*</span>
					</td>
				</tr>
				<tr>
					<td>
					<b>Middle Name:</b>
					</td>
					<td>
					<input type="text" name="middlename" size="40px"><span class="star">&nbsp;</span>
					</td>
				</tr>
				<tr>
					<td>
					<b>Last/Family Name:</b>
					</td>
					<td>
					<input type="text" name="lastname" size="40px"><span class="star">*</span>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="text-align:center">
					<input type="submit" name="submit" value="Invite">
					</td>
				</tr>
				</table>
			</form>
		</div>
		
		<div class="nav"></div>
			
		<div id="footer" class="footer_color border">
			<p align="center"><b>&copy;2010 LSMS-All Rights Reserved.</b></p>
			<p align="center"> <b>Powered by Shu.</b></p>
		</div>
	</div>
  </body>
</html>
